<?php
class Myblog_Form_PassRecovery extends Zend_Form
{
public $elementDecorators = array(
    'ViewHelper',
    array('Label', array('tag' => 'span'))
);
	public function init()
	{
	$this->setMethod('POST')
	->setAction('user/passrecovery')
	->setName('passRecovery')
	->setAttrib('onsubmit','return check(this)');
	
	$this->addElements(array(
	$userlogin = new Zend_Form_Element_Text('useremail', array(

			'label'=>'Email:',
			'required'=>'true',
            'autocomplete'=>'off',
			'size'=>'25',
            'style'=>'margin-bottom:26px',
            'decorators'=>$this->elementDecorators,
		    'validators'=>array('NotEmpty','EmailAddress','EmailExists'),

			'filters'=>array('StripTags','StringTrim','StringToLower'),
		)),

		$submit = new Zend_Form_Element_Submit('submit', array(
			'label'=>'Продолжить',
			'class'=>'btn '
		)),
));
	$submit->removeDecorator('Label');
	}
}
?>
